package com.masterclient.app.businessmodule.vipmodule.api;

import com.eoner.baselib.container.CommonBaseResponse;
import com.masterclient.app.businessmodule.vipmodule.bean.OrderBean;
import com.masterclient.app.businessmodule.vipmodule.bean.SellerOrderDetail;
import com.masterclient.app.businessmodule.vipmodule.bean.ServiceOrderBean;
import com.masterclient.app.businessmodule.vipmodule.bean.ServiceOrderDetail;

import java.util.Map;

import io.reactivex.Observable;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Query;

public interface SaleOrderListApi {
    /**
     * 零售订单
     * */
    @GET("/v1/distribution/seller_order/need/list")
    Observable<CommonBaseResponse<OrderBean>> getOrderList(@Query("status") String status, @Query("page") int page, @Query("page_size") int page_size);
    /**
     * 零售订单-已移交
     * */
    @GET("/v1/distribution/seller_order/not/need/list")
    Observable<CommonBaseResponse<OrderBean>> getNotOrderList(@Query("page") int page, @Query("page_size") int page_size);
    /**
     * 零售订单立即发货
     * */
    @POST("/v1/distribution/seller_order/push")
    Observable<CommonBaseResponse> sellerOrderPush(@Body Map<String, String> params);
    /**
     * 分销订单详情
     * */
    @GET("/v1/distribution/seller_order/detail/get")
    Observable<CommonBaseResponse<SellerOrderDetail>> SellerOrderDetail(@Query("order_no") String order_no, @Query("scene") int scene);

    /**
     * 售后订单
     * */
    @GET("/v1/distribution/seller_refund/list/get")
    Observable<CommonBaseResponse<ServiceOrderBean>> getRefundList(@Query("status") String status, @Query("page") int page, @Query("page_size") int page_size);

    /**
     * 待处理售后详情
     * */
    @GET("/v1/distribution/seller_refund/detail/get")
    Observable<CommonBaseResponse<ServiceOrderDetail>> SellerRefundDetail(@Query("refund_no") String refund_no);


}
